package com.beiyou.dao;

import com.beiyou.annotation.PageNote;
import com.beiyou.dto.UserDtoQuery;
import com.beiyou.dto.VendorDtoQuery;
import com.beiyou.entity.UserEntity;
import com.beiyou.entity.VendorEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author wzby
 * @Date: 2022/10/19 13:22
 */
@Mapper
public interface VendorMapper {

    @PageNote
    List<VendorEntity> select(VendorDtoQuery vendorDtoQuery);

    int insert(VendorEntity vendorEntity);

    int update(VendorEntity vendorEntity);

    int delete(Integer id);

    @Update(" update scm_vendor set status = #{status} where id = #{id}")
    int statusUpdate(Integer id,Integer status);
}
